<?php
include 'global.php';
class Activity
{
	public $captain;
	public $members = array();
	public $name;
	public $type;
	protected $level;
	protected $team_id;
	public function __construct($team_id, $name,$type,$captain,$level){
		$this->team_id = $team_id;
		$this->captain = $captain;
		$this->members[] = $captain;
		$this->name = $name;
		$this->type = $type;
		$this->level = $level;
	}
	public function getLevel() {
		return $this->level;
	}
	public function setLevel($level) {
		$this->level=$level;
	}
	public function getId() {
		return $this->team_id;
	}
	public function setId($id) {
		$this->team_id = $id;
	}
	public function addMember($user){
		$this->members[] = $user;
	}

	public function getCaptain(){
		return $this->captain;
	}
	public function getMembers(){
		return $this->members;
	}
	public function getType(){
		return $this->type;
	}
	public function getName(){
		return $this->name;
	}
}
?>
